FROM java:8

#设置时区为上海
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mkdir -p /home/lll/pdf
COPY ./target/classes/font/SourceHanSansCN-Regular.ttf /home/lll/pdf/SourceHanSansCN-Regular.ttf
COPY ./target/onegene-pdf.jar /home/lll/pdf/onegene-pdf.jar

CMD echo "The pdf is starting..." && \
    java -jar /home/lll/pdf/onegene-pdf.jar